<form action="#" method="post">
	<textarea cols="80" rows="10" name="content">codeing here..</textarea> 
	<hr/>
	language:<input type="text" name="language"/>
	<div id="result"></div>
	<hr/>
	<input name="submit" value="submit" type="submit"/>
</form>
<?php	
include 'test_header.php';

$code = new code( db_connect() );

if ( $_POST ){
@$code->set( 'content' , $_POST['content'] );
@$code->set( 'language' , $_POST['language'] );
$code->set( 'user' , 'judas' );
$code->set( 'submit_time' , date( 'N-m-d H-m-s') );
$time = time();
@$code->set( 'full_path' , "/source/judas/no1001_$time.".$_POST['language'] );

//保存到数据库中
$code->save();
//echo $code->do_judge( );
}


	
